<!DOCTYPE html>
<html>
<head>
    <title>相对定位</title>
    <style>
        .box1{
            position: relative;
            left: 50px;
            top: 50px;
            height: 100px;
            width: 100px;
            background-color: pink;
        }
        .box2{
            height: 100px;
            width: 100px;
            background-color: burlywood;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>